﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="products_details.aspx.cs" Inherits="WebSite.cn.products_details" %>
<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="category.ascx" TagName="category" TagPrefix="uc2" %>
<%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc3" %>
<%@ Register src="browesProduct.ascx" tagname="browesProduct" tagprefix="uc4" %>
<%@ Register src="leftimgs.ascx" tagname="leftimgs" tagprefix="uc5" %>
<%@ Register src="../Controls/leftRelationGoods.ascx" tagname="leftRelationGoods" tagprefix="uc6" %>
<%@ Register src="../Controls/leftHotGoods.ascx" tagname="leftHotGoods" tagprefix="uc7" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title><%=WebSite.info.info1("", "shoptitle")%></title>
    <meta name="Description" content="<%=WebSite.info.info1("","shopcontent")%>" /> 
    <meta name="Keywords" content="<%=WebSite.info.info1("","shopkey")%>" />

    <link href="jqzoom.css" type="text/css" rel="stylesheet" />
    <script src="jquery.js" type="text/javascript"></script>

    <script language="javascript">


        $(function () {
            $("#ibtnSubmit").click(function () {
                $.ajax({
                    type: "POST",
                    url: "/isAddToAccountHandler.ashx",
                    data: "gid=" + $("#gid").val() + "&price=" + $("#price").val() + "&pronum=" + $("#pronum").val() + "&content=" + $("#content").val() + "&score=" + $("#score").val() + "&useway=1",
                    success: function (msg) {

                        if (msg == "1002") {
                            TB_show(null, "/cn/exchange.aspx?TB_iframe=true&height=370&width=640", false);

                        }
                        else
                            window.location = "/cn/account.aspx";
                    }
                });
                return false;
            });

        });

        $(function () {
            $("#ibtnSubmitGenerate").click(function () {
                $.ajax({
                    type: "POST",
                    url: "/isAddToAccountHandler.ashx",
                    data: "gid=" + $("#gid").val() + "&price=" + $("#price").val() + "&pronum=" + $("#pronum").val() + "&content=" + $("#content").val() + "&score=" + $("#score").val() + "&useway=0",
                    success: function (msg) {
                         if (msg == "1002") {
                            TB_show(null, "/cn/login.aspx?TB_iframe=true&height=370&width=640", false);
                        }
                        else
                            window.location = "/cn/account.aspx";
                    }
                });
                return false;
            });

        });


    </script>

    <script language="javascript" type="text/javascript">
     
        function displayImage(id, image) {
           
        }
</script>



</head>
<body class="body">

<form id="form1" runat="server">
	<uc1:head ID="head_1" runat="server" />
        <center>
<div id="container">
   
   <img src="/uploadfile/banner/CgMBmFFJYKyABcYSAADSSEcOl2k09900.jpg" width="980px" />
   <table>
   <tr>
   <td style="width:260px; vertical-align:top; float:left; text-align:left;"> 
       <uc6:leftRelationGoods ID="leftRelationGoods1" runat="server" />
      
       <uc7:leftHotGoods ID="leftHotGoods1" runat="server" />
      
   </td>
   <td style="vertical-align:top;">
       <div class="location"><%=SbNavigater.ToString()%></div>
		<div id="prozon">        
            <div id="prozonleft"> 
			    <h2><span  id="prodImageCell"><img src=<%=proimg %> class=jqzoom id=proImg  width=300px; jqimg="<%=proimg %>" /></span></h2>
				<div style="padding-bottom:8px; padding-top:8px; width:300px; text-align:center;"><a href="pic.aspx?gid=<%=Request.QueryString["gid"]%>" target="_blank"><img src="images/zoom.gif" border="0" /></a></div>
                <table width="100%" border="0" cellspacing="2" cellpadding="0" class="prozonleft_table">
                  <tr>
                    <%=pic %>
                    <%=imgs %> 
                    <td></td>
                  </tr>
                </table>
          </div>
          
          <input type="hidden" name="score" id="score"  value="<%=proscore %>" />
          <input name="gid" id="gid" type="hidden" value="<%=Request.QueryString["gid"] %>" />
            <div class="prozonright" >
				    <table width="100%" border="0"   cellpadding="0" cellspacing="0" class="table04">			  
                      <tr><td colspan="3"> <h1><%=proname %></h1></td></tr>
                        <tr><td colspan="3" style="text-align:left;" >商品编号: <%=procode %></td></tr>
                          <tr><td colspan="3"> <h1>简介：</h1></td></tr>
                            <tr><td colspan="3"> <h1> <%= Instruction %></h1></td></tr>
                        <tr><td colspan="3" style="text-align:left;" >库存: <%=proku1%></td></tr>
                      <tr>
						<td colspan="3" style="text-align:left;" >数量
				        <input name="pronum" id="pronum" type="text" size="5" value="1" />
					    <span class="text_red"><%=proprice1 %>福点</span>
					    <input type="hidden" name="price" id="price" value="<%=price %>" />
                        <input type="text" class="inputa" name="content" id="content" value="" readonly  style="display:none" />
					    </td>
                        </tr>
                         <tr><td colspan="3" style="text-align:left;" >
						  <asp:ImageButton ID="ibtnSubmit" runat="server" ImageUrl="images/pro_view_52.png"  />
                          &nbsp;
                          <asp:ImageButton ID="ibtnSubmitGenerate" runat="server" ImageUrl="images/pro_view_53.png"  />
                          </td>
					  </tr>     
				   </table>
          </div>

          	<iframe  name="conb" src="products_detfrm.aspx?gid=<%=Request.QueryString["gid"] %>" frameBorder=0  width="100%" scrolling="no" onload="this.height=conb.document.body.scrollHeight"></iframe>
            </div>
   
   </td>
   </tr>
   
   </table>
 

                </div>
          </center>
           <uc3:bottom ID="bottom_1" runat="server" />
		  </form>
</body>
</html>


<script src="jquery.jqzoom.js"></script>

<script type=text/javascript>
    //jQuery.noConflict();
    jQuery(document).ready(function () {
        jQuery("img.jqzoom").jqueryzoom({
            xzoom: 320,
            yzoom: 300,
            offset: 15,
            position: "right"
        });
    });
  </script>
